﻿package cn.whdream.info;

public class MyThread implements Runnable {
	
	private boolean flag = true;
	@Override
	public void run() {
	
		while(flag) {
			//for(int y =0;y<1000;y++) {
				
				System.out.println(Thread.currentThread().getName()+"thread。。。。");
			//}
		}
		
	}
	public void stopThread() {
		flag = false;
	}
}
